var Otime="13:00";
var dyue = Otime.substring(0,2);

function Show_Time(){
	//var tid=$(".Tea_lock").html().substring(0,2);
	//var sis=$(".Tea_lock:contains('"+dyue+"')");
	//$("tr:lt(2)") 
	$('.Tea_lock').each(function(index,doxs){
		var xdf=$(doxs).html();
		var yud=xdf.substring(0,2);
		if(yud==dyue){
			var inxx=index-1;
			$(".Tea_lock:lt("+inxx+")").parent().attr("style","display:none;");
			return ;
			}
//alert(yud);
		});}


function On_time(){
	//var sut = $(tq).attr(id);
  $.ajax({
        type: "post",
        dataType: "json",
		//data: sut,
        url: "forum2.php",
        success: function(data){
		$('.Tea_butt').empty();
		 $(data).each(function(i){
			$('.Tea_lock').each(function(index,doum){
				if(data[i]==$(doum).html()){$(doum).after("<a class='Tea_butt' href='#"+data[i]+"'><img src='images/tach2.jpg' width='59' height='25' /></a>");}
});});}});}


function selTeac(yus){
	var sed = $(yus).attr('data');
  $('#Ttime option').each(function(index,doexs){ 
 			var yu = $(doexs).attr('value'); 
  	if(sed == yu){
		$('#Ttime option').eq(index).attr('selected','selected');
		$("form[name='Forsd']") .submit();
		}
  });
	
	}
$(document).ready(function(){
	Show_Time();
	$('.Ser_tab2').height( $('.Teahjsie').height());$('.Ser_tab2').attr('style','line-height:'+$('.Teahjsie').height()+'px;');
	$('.DengJisccsex a').click(function(){$('.DengJisccsex a').attr('class','');$(this).attr('class','onSerchs'); var sy = $(this).attr('date');$('.DengJisccsex input').attr('value',sy);});
	$('.SexDengJixsd a').click(function(){$('.SexDengJixsd a').attr('class','');$(this).attr('class','onSerchs'); var sy = $(this).attr('date');$('.SexDengJixsd input').attr('value',sy);});
	$('.Teahjsie a').click(function(){$('.Teahjsie a').attr('class','');$(this).attr('class','onSerchs'); var sy = $(this).attr('date');;$('#goods_course').attr('value',sy);});
	
});